import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqStringHelper } from "./SeqStringHelper";
type int = number;
//class SPetExploreInfo
    
    export  class SPetExploreInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetExploreInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.startLevel);
            arg1.writeInt(this.currentLevel);
            arg1.writeInt(this.maxLevel);
            arg1.writeInt(this.autoMaxLevel);
            SeqStringHelper.write(arg1, this.petUids);
            arg1.writeInt(this.times);
            arg1.writeInt(this.maxTimes);
            arg1.writeBool(this.isInExplore);
            arg1.writeBool(this.autoExplore);
            arg1.writeDate(this.exploreEndDt);
            arg1.writeInt(this.activeFactor);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.startLevel = arg1.readInt();
            this.currentLevel = arg1.readInt();
            this.maxLevel = arg1.readInt();
            this.autoMaxLevel = arg1.readInt();
            this.petUids = SeqStringHelper.read(arg1);
            this.times = arg1.readInt();
            this.maxTimes = arg1.readInt();
            this.isInExplore = arg1.readBool();
            this.autoExplore = arg1.readBool();
            this.exploreEndDt = arg1.readDate();
            this.activeFactor = arg1.readInt();
            return;
        }

        public /* const */_type: int=220;

        public /* var */startLevel: int;

        public /* var */currentLevel: int;

        public /* var */maxLevel: int;

        public /* var */autoMaxLevel: int;

        public /* var */petUids: Array<any>;

        public /* var */times: int;

        public /* var */maxTimes: int;

        public /* var */isInExplore: Boolean;

        public /* var */autoExplore: Boolean;

        public /* var */exploreEndDt: Date;

        public /* var */activeFactor: int;

        public static /* var */_regist: SPetExploreInfo;
    }

            SPetExploreInfo._regist = new SPetExploreInfo(true);
        